#include <stdio.h>
#include <limits.h>

/*获取所有整数数据类型的取值范围*/
int main()
{
    printf("char\t\t:%d~%d\n",CHAR_MIN,CHAR_MAX);
    printf("int\t\t:%d~%d\n",INT_MIN,INT_MAX); 
    printf("short\t\t:%d~%d\n",SHRT_MIN,SHRT_MAX);
    printf("long\t\t:%d~%d\n",LONG_MIN,LONG_MAX);
    printf("long long\t:%d~%d\n",LLONG_MIN,LLONG_MAX);0
    printf("unsigned short\t:%d~%d\n",0,USHRT_MAX);
    printf("unsigned char\t:%d~%d\n",0,UCHAR_MAX);
    printf("unsigned int\t:%d~%d\n",0,UINT_MAX);
    printf("unsigned long\t:%d~%d\n",0,ULONG_MAX);
    
    return 0;
}